﻿using System.Collections.Generic;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using VOL.Entity.AttributeManager;
using VOL.Entity.DomainModels.WorkforceManage;
using VOL.SmartMecial.IServices.WorkforceManage;

namespace VOL.WebApi.Controllers.SmartMecial
{
    //[Route("api/[controller]")]
    //[ApiController]
    [Route("api/BedController")]
    [PermissionTable(Name = "BedController")]
    public class BedController : ControllerBase
    {
        private readonly IBedService service;

        public BedController(IBedService service)
        {
            this.service = service;
        }

        [HttpGet("GetBeds")]
        public List<Entity.DomainModels.Bed> GetBeds()
        {
            return service.GetBeds();
        }
    }
}
